package com.hxrfid.project.domain.bo;

import com.hxrfid.common.core.domain.BaseEntity;
import com.hxrfid.common.core.validate.AddGroup;
import com.hxrfid.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户评价业务对象 bs_user_comment
 *
 * @author hxrfid
 * @date 2025-06-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BsUserCommentBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 评价文字
     */
    @NotBlank(message = "评价文字不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commentText;

    /**
     * 评价图片
     */
    private String commentImages;

    /**
     * 评星
     */
    private Long commentStar;

    /**
     * 追加评价文字
     */
    private String addCommentText;

    /**
     * 追加评价图片
     */
    private String addCommentImages;

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 头像地址
     */
    private String avatar;

    /**
     * 备注
     */
    private String remark;


}
